/*
 * @Author: zhangzhanyan 
 * @Date: 2021-07-21 22:37:20 
 * @Last Modified by: zhangzhnayan
 * @Last Modified time: 2021-07-23 16:08:42
 */

import React, { Component } from 'react';
import { Icon, Grid } from 'antd-mobile';
import {history} from "umi"

class header extends Component {
    goback=()=>{
        history.goBack()
    }
    register=()=>{
        history.push("/register")
    }
    render() {
        return (
            <div className="Login-header">
                <div onClick={()=>this.goback()}><Icon type="cross" /></div>
                <div onClick={()=>this.register()}>注册</div>
            </div>
        );
    }
}

export default header;